package com.ln.controller.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.util.WebUtils;

@Controller
public class ErrorController {
	@RequestMapping("/error/notpage")
	public String notPage() {
		return "error/notpage";
	}
	
	@RequestMapping("/error/msg")
	public String msg(Model model, HttpServletRequest request) {
		model.addAttribute("msg", WebUtils.getSessionAttribute(request, "msg"));
		WebUtils.setSessionAttribute(request, "mag", null);
		return "error/jump-msg";
	}
}
